<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>班级学生成绩</title>
<style>
        h1 {
            font-size: 30px;
            text-transform: uppercase;
            font-weight: 300;
            text-align: center;
            margin-bottom: 15px;
        }
        table {
            width: 100%;
            table-layout: fixed;
        }
        .tbl-header {
            background-color: rgba(255,255,255,0.3);
        }
        .tbl-content {
            height: 300px;
            overflow-x: auto;
            margin-top: 0px;
            border: 1px solid rgba(255,255,255,0.3);
        }
        th {
            padding: 20px 15px;
            text-align: left;
            font-weight: 500;
            font-size: 12px;
            text-transform: uppercase;
        }
        td {
            padding: 15px;
            text-align: left;
            vertical-align: middle;
            font-weight: 300;
            font-size: 12px;
            border-bottom: solid 1px rgba(255,255,255,0.1);
        }


       
       
        
    </style>
<style type="text/css">
	.contrainer {
		width:800px;
		margin:20px auto;
	}
	.contrainer h3 {
		text-align: center;
	}
	.contrainer table{
		width:100%;
		border-collapse: collapse;
	}
	td,th {
		padding: 8px 15px;
		text-align: center;
	}
	form p label {
	display: inline-block;
	width: 80px;
	text-align: right;
	margin-bottom: 10px;
	}
	form p input{
		padding: 10px;
	}
	h2{text-align: center;}
	
	</style>

</head>
<body  background="images/1.jpg">
<h2>查看班级学生成绩</h2>
<div>
<table class="tbl-header">
	<thead>
		<tr>
		<th>学号</th>
		<th>姓名</th>
		<c:forEach items="${kcs}" var="kc">
		<th>${kc.name}</th>
		</c:forEach>
		<th>总分</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${cjb}" var="row">
		<tr>
		<c:forEach items="${row}" var="cell">
		<td>${cell}</td>
		</c:forEach>
		</tr>
		</c:forEach>
	</tbody>
</table>
<a href="main.jsp">返回主页</a>
</div>
</body>
</html>